//
//  MyTableViewCell.m
//  大轮胎
//
//  Created by 曹亮 on 2017/3/21.
//  Copyright © 2017年 zyc. All rights reserved.
//

#import "MyTableViewCell.h"
#import <SDAutoLayout.h>
@implementation MyTableViewCell



-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        
        
        
        [self.contentView addSubview:self.image];
        [self.contentView addSubview:self.label];
        self.image.sd_layout.leftSpaceToView(self.contentView,20).topSpaceToView(self.contentView,20).widthIs(90).heightIs(90);
        
        self.label.sd_layout.leftSpaceToView(self.contentView,200).topSpaceToView(self.contentView,70).widthIs(100).heightIs(40);
    }
    
    return self;
}



-(UIImageView*)image
{
    if (!_image) {
        _image=[[UIImageView alloc]init];
        
        _image.layer.cornerRadius=45;
        _image.layer.masksToBounds=YES;
        
        
        
        
    }
    
    return _image;
}

-(UILabel*)label
{
    if (!_label) {
        _label = [[UILabel alloc]init];
        
        
        
        _label.textColor =[UIColor whiteColor];
        
        _label.font = [UIFont systemFontOfSize:17];
    }
    return _label;
}

@end
